import { Application } from "mydog";
import { IUidSid } from "../../../app/definition/interface";
import doudizhuManager from "../../../app/game/doudizhu/doudizhuManager";

declare global {
  interface Rpc { doudizhu: { main: Remote } }
}

export default class Remote {
  private app: Application;
  constructor(app: Application) {
    this.app = app;
  }

  public onInitGame(roomId: number, uidsid: Array<IUidSid>) {
    return doudizhuManager.onInitGame(roomId, uidsid);
  }

  public onStartGame(roomId: number) {
    return doudizhuManager.onStartGame(roomId);
  }

  public onEndGame(roomId: number) {
    return doudizhuManager.onEndGame(roomId);
  }

}
